package com.zyx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Spencer {
    private Integer spencerId;

    private String spencerUser;

    private String spencerWord;

    private String spencerName;

    private String location;

    private String userName;

    private String phone;

    private Integer state;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date createTime;

    private String picture;

    @Override
    public String toString() {
        return "Spencer{" +
                "spencerId=" + spencerId +
                ", spencerUser='" + spencerUser + '\'' +
                ", spencerWord='" + spencerWord + '\'' +
                ", spencerName='" + spencerName + '\'' +
                ", location='" + location + '\'' +
                ", userName='" + userName + '\'' +
                ", phone='" + phone + '\'' +
                ", state=" + state +
                ", createTime=" + createTime +
                ", picture='" + picture + '\'' +
                '}';
    }

    public Integer getSpencerId() {
        return spencerId;
    }

    public void setSpencerId(Integer spencerId) {
        this.spencerId = spencerId;
    }

    public String getSpencerUser() {
        return spencerUser;
    }

    public void setSpencerUser(String spencerUser) {
        this.spencerUser = spencerUser == null ? null : spencerUser.trim();
    }

    public String getSpencerWord() {
        return spencerWord;
    }

    public void setSpencerWord(String spencerWord) {
        this.spencerWord = spencerWord == null ? null : spencerWord.trim();
    }

    public String getSpencerName() {
        return spencerName;
    }

    public void setSpencerName(String spencerName) {
        this.spencerName = spencerName == null ? null : spencerName.trim();
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location == null ? null : location.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }
}